<include file="Public:header" />
    <div class="rbox1">
        <div class="rbox1_top"></div>
        <div class="rbox1_center">
        <div id="play">	
                <div id="play_bg"></div>
                <div id="play_info"></div>
                <div id="play_control">
                        <ul>
                            <volist name=":ch2('field:id,img,title',"where:img!=''",'limit:10','缓存:Index_TopNews:60')" id="vo">                            
							<li><b>{$i}</b></li>
							</volist>
                        </ul>
                </div>
                <div id="play_list">
                    <volist name=":S('Index_TopNews')" id="vo">
					<a href="{$vo.url}" target="_blank">
                        <img src="{$vo.img|chimg=500,500}" title="{$vo.title}" alt="{$vo.title}" />
                    </a>
					</volist>                    
                </div>
            </div><!--play-->

            <script type="text/javascript">
                    var t = n = 0, count = $("#play_list a").size();
                    $(function(){	
                        $("#play_list a:not(:first-child)").hide();
                        $("#play_info").html($("#play_list a:first-child").find("img").attr('alt'));
                        $("#play_control li:first-child").css({"background-position":"-17px -215px"});
                        $("#play_info").click(function(){window.open($("#play_list a:first-child").attr('href'), "_blank")});
                        $("#play_control li").click(function() {
                            var i = $(this).text() - 1;
                            n = i;
                            if (i >= count) return;
                            $("#play_info").html($("#play_list a").eq(i).find("img").attr('alt'));
                            $("#play_info").unbind().click(function(){window.open($("#play_list a").eq(i).attr('href'), "_blank")})
                            $("#play_list a").filter(":visible").fadeOut(500).parent().children().eq(i).fadeIn(1000);
                            $(this).css({"background-position":"-17px -215px"}).siblings().css({"background-position":"0 -215px"});
                        });
                        t = setInterval("showAuto()", 3500);
                        $("#play").hover(function(){clearInterval(t)}, function(){t = setInterval("showAuto()", 3500);});
                    })

                    function showAuto()
                    {
                        n = n >= (count - 1) ? 0 : ++n;
                        $("#play_control li").eq(n).trigger('click');
                    }
            </script>
        </div><!--play_center-->
        <div class="rbox1_bottom"></div>
    </div><!--幻灯特效-->
    
    <div class="rbox2">
        <div class="rbox2_top"></div>
        <div class="rbox2_center">
            <div class="top">
				<img src="__PUBLIC__/Images/admin_head.png" />
				<div class="line"><a href="__URL__/diary" class="more">查看更多</a>网站日记</div>
				<div class="line"><a href="http://weibo.com/awen8180" target="_blank">@还是这个味</a>&nbsp;&nbsp;<a href="http://q.weibo.com/1530755" target="_blank">CMSHead微群</a> QQ群146570772</div>   
				<div class="line">网站：<a target="_blank" href="http://www.cmshead.com">CMSHead官网</a>&nbsp;&nbsp;<a target="_blank" href="http://demo.cmshead.com">演示站</a>&nbsp;&nbsp;<a target="_blank" href="http://code.google.com/p/cmshead/">CMSHead谷歌</a></div>
            </div>
            <div class="bottom">
                <volist name=":ch2('diary','条数：5','缓存:Index_Diary:60')" id="vo">
                <div title="{$vo.content}"><font color="#00CCFF">※</font> {$vo.content}</div>
                </volist>
            </div>
        </div>
        <div class="rbox2_bottom"></div>
    </div><!--站长日记-->
    <!--CMSHead_Tpl_Tag_CanEdit-->
    <volist name=":ch2('news','field:id,img,title,rewrite','where:status=1 and img!=""','order:sort DESC,add_time DESC','limit:1','cache:Index_SlideNews:60')" id="news">
    <div class="rbox3">
        <div class="rbox3_top"> </div>
        <div class="rbox3_center">
            <a href="{$news.url}" title="{$news.title}" target="_blank"><img src="{$news.img|chimg=news,300,300}" border="0" alt="{$news.title}" /></a>
        </div>
        <div class="rbox3_bottom"></div>
    </div>
    </volist>
	<!--}-->
    <div class="wrap_left CMSHead_Tpl_Tag_CanEdit">
        <volist name=":ch2('条数:8')" id="vo">
        <div class="art_block">
            <div class="art_left"></div>
            <if condition="$vo.sort gt 0">
			<div class="art_center art_top">
			<else />
			<div class="art_center">
			</if>
                <div class="left"><img src="{$vo.img|chimg=100,100}" /></div>
                <div class="right">
                    <h1><a href="{$vo.url}">{$vo.title|cutstr=30,1}</a></h1>
                    <div>[<a href="{$vo.classurl}">{$vo.classtitle}</a>] 浏览次数：{$vo.apv} 次  发表时间：{$vo.add_time|date='Y-m-d H:i:s',###}</div>
                    <p>{$vo.content|encode=300}</p>
                </div>
            </div>
        </div>
        </volist>
    </div><!--文章列表-->             
<include file="Public:footer" />